-
Notifications
You must be signed in to change notification settings - Fork 349
Improvements to rest highlighting #360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
myFunction(...iterableObj) // spreadfunction(a, b, ...theArgs) { // rest
// ...
}To which of the parenthesized sections above does |
|
You're correct, I misread the spec, I'll rename them back, fix up this PR shortly. |
3923f9e to
bfe2920
Compare
bfe2920 to
defad41
Compare
|
Fixed. |
defad41 to
aac12e4
Compare
syntax/javascript.vim
Outdated
| syntax region jsFuncArgs contained matchgroup=jsFuncParens start='(' end=')' contains=jsFuncArgCommas,jsFuncArgRest,jsAssignmentExpr,jsComment,jsLineComment nextgroup=jsFuncBlock keepend skipwhite skipempty | ||
| syntax match jsFuncArgCommas contained ',' | ||
| syntax match jsFuncArgRest contained /\%(\.\.\.[a-zA-Z_$][0-9a-zA-Z_$]*\))/ | ||
| syntax match jsFuncArgRest contained /\%(\.\.\.[a-zA-Z_$][0-9a-zA-Z_$]*\))/ contains=jsFuncArgRestDots |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
➡️ ➡️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, not sure what you mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind, you meant whitespace alignment, fixed
* Added higher specificity to the dots in the spread declaration
aac12e4 to
7323233
Compare
|
LGTM |
Noise